package com.example.sms.employee.service;

import com.example.sms.employee.dao.EmployeeMapper;
import com.example.sms.employee.service.api.DeleteEmployeeCommand;

public interface IDeleteEmployeeCommandHandler {

    EmployeeMapper getEmployeeMapper();

    default void process(DeleteEmployeeCommand command) {
        System.out.println("删除员工信息: " + command.getEmployeeId());
        throw new RuntimeException("故意抛出异常，测试事务回滚");
    }

}
